package com.danbay.cloud.device.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.danbay.cloud.device.api.dto.DeviceInfoDto;
import com.danbay.cloud.device.dto.DeviceOfflineDto;
import com.danbay.cloud.device.entity.EnergyDevice;

import java.util.List;

/**
 * Created by SJG on 2017/10/21.
 */
public interface EnergyDeviceMapper extends BaseMapper<EnergyDevice> {

    /**
     * 按mac地址批量查询
     * @param macs mac地址列表
     * @return 设备列表
     */
    List<DeviceInfoDto> findByMacs(List<String> macs);

    DeviceOfflineDto findOfflineDeviceByDeviceId(EnergyDevice energyDevice);
}
